package com.vanguard.webservice;

import com.vanguard.domain.User;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.List;

/**
 * @Title: 用户业务接口
 * @Description:
 * @Author: vanguard
 * @Version: 1.0
 * @Date: 2019/02/12
 */
@WebService
public interface WebServiceManage {

    /**
     * 增加
     * @param user
     */
    @WebMethod
    void save(@WebParam(name="user") User user);

    /**
     * 删除
     * @param id
     */
    @WebMethod
    void delete(@WebParam(name="id") Long id);

    /**
     * 根据id查询用户信息
     * @param id
     * @return
     */
    @WebMethod
    User getById(@WebParam(name="id") Long id);

    /**
     * 查询list集合
     * @return
     */
    @WebMethod
    List<User> findList();
}
